package com.security.it.authentication.common;

import com.security.it.authentication.dto.ValidateCode;
import com.security.it.core.enums.ValidateCodeType;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * 验证码生成接口
 */
public interface ValidateCodeGenerator {

    ValidateCode generate(ServletWebRequest request);

    boolean accept(ValidateCodeType type);
}
